<?php
// +----------------------------------------------------------------------
// | ZanPianCMS
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.zanpiancms.com All rights reserved.
// +----------------------------------------------------------------------
// | BBS:  <http://www.zanpiancms.cc>
// +----------------------------------------------------------------------
namespace app\common\validate;
class Config extends Base{
    protected $rule =   [
	    ['name', 'require|unique:config', '配置标识不能为空|配置标识已经存在'],
		['title', 'require', '配置名称不能为空'],
		['type', 'require', '配置类型不能为空'],
		['class', 'require', '配置分类不能为空'],
    ];
    protected $scene = [
        'add'=> ['name','title','type','class'],
        'edit'=> ['name'=>'require','title','type','class'],
    ];
}